CMAKE_MINIMUM_REQUIRED(VERSION 2.8.1)

FIND_LIBRARY(LIBAWUI_LIBRARIES NAMES libawui libawui.so PATHS "./libawui" DOC "awui library")
FIND_PATH(LIBAWUI_INCLUDE_DIRS awui/Object.h "./libawui" DOC "awui includes")

PROJECT(awSlider)

if(UNIX)
	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=gnu++0x")
endif()
	
INCLUDE_DIRECTORIES(
	${LIBAWUI_INCLUDE_DIRS}
)

FILE(GLOB AWSLIDER_SOURCES *.cpp)
FILE(GLOB AWSLIDER_HEADERS *.h)

SOURCE_GROUP("Source" FILES ${AWSLIDER_SOURCES})
SOURCE_GROUP("Headers" FILES ${AWSLIDER_HEADERS})

ADD_EXECUTABLE(awSlider ${AWSLIDER_SOURCES} ${AWSLIDER_HEADERS})

TARGET_LINK_LIBRARIES(
	awSlider
	${LIBAWUI_LIBRARIES}
)
